/**
 * @projectName: dataAccessFactory
 * @author: 小飞
 * @description: TODO
 * @date: 2024/2/27 22:00
 * @version: 1.0
 */
package com.home.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("User对象")
@Builder
@EqualsAndHashCode(callSuper = true)
public class User extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("账号状态(0正常，1停用)")
    private int status;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("用户性别(0男，1女，2未知)")
    private int sex;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("用户类型(0-学生,1-老师)")
    private int userType;

    @ApiModelProperty("用户角色id集合")
    @TableField(exist = false)
    private List<Integer> roleTypes;

    @ApiModelProperty("所在社团id集合")
    @TableField(exist = false)
    private List<Integer> clubIds;
}
